<@master template="master/master-loan"  title="业务运营分析（贷前数据）">
<div class="detaiTab  detaiTab1">
<#assign dataStart=vo.createDateStart />
<#assign dataEnd=vo.createDateEnd />
<#assign nsStartDataStart=vo.nsStartDataStart />
<#assign nsStartDataEnd=vo.nsStartDataEnd />
<#assign provinceName=vo.provinceName />
<#assign ssBankName=vo.ssBankName />
<#assign zxBankName=vo.zxBankName />
<#assign brandName=vo.brandName />
	<form  id="afterloanform" action="/loanBefore/index" class="clearfix action-ajax-form-valid" data-action-html="#action_load_body">
		<table width="100%" cellspacing="0" cellpadding="0" border="0">
        <tbody>
        	<tr>
        		<td class="bg" align="right">创建日期:
        			<font color="red">*</font>
        		</td>
        		<td >
        			<@date id="dataStart" name="createDateStart" value="${vo.createDateStart}" class="action-valid-field" data\-action\-valid\-rule="required;" data\-action\-valid\-msg\-required="日期不能为空！" />
			    	-
			    	<@date id="dataEnd" name="createDateEnd" value="${vo.createDateEnd}" class="action-valid-field" data\-action\-valid\-rule="required;" data\-action\-valid\-msg\-required="日期不能为空！" /> 
					<span class="action-field-error" for="stupdate" style="color:red;"></span>
			    </td>
			    <td class="bg" align="right">内审开始日期:
        		</td>
        		<td >
        			<@date id="nsStartDataStart" name="nsStartDateStart" value="${vo.nsStartDateStart}" class="action-valid-field" data\-action\-valid\-rule="required;" data\-action\-valid\-msg\-required="日期不能为空！" />
			    	-
			    	<@date id="nsStartDataEnd" name="nsStartDateEnd" value="${vo.nsStartDateEnd}" class="action-valid-field" data\-action\-valid\-rule="required;" data\-action\-valid\-msg\-required="日期不能为空！" /> 
					<span class="action-field-error" for="stupdate" style="color:red;"></span>
			    </td>
			</tr>
			<tr>
        		<td class="bg" align="right">征信银行:</td>
        		<td>
        			<@select dataSouceType="BANKTYPEO2O" name="zxBankName" value="${vo.zxBankName}" id="zxBankName"/>
        		</td>
        		<td class="bg" align="right">送审银行:</td>
        		<td>
        			<@select dataSouceType="BANKTYPEO2O" name="ssBankName" value="${vo.ssBankName}" id="ssBankName"/>
        		</td>
			</tr>
			<tr>
        		<td class="bg" align="right">品牌:</td>
	        	<td >
	        		<input id="brandName" name="brandName" class="tabInp" value="${vo.brandName}"/>
	        	</td>
	        	<td class="bg" align="right">省区:&nbsp;  &nbsp;</td>
		       	<td >
		    		<select name="provinceName" id="provinceName">
		        		<option  value="">请选择
		        		<#list proList as proList>
		        			<option value="${proList.provinceName}" <#if proList.provinceName == vo.provinceName>selected="selected" </#if>>${proList.provinceName}
		        		</#list>
		        	</select>
		    	</td>
			</tr>
			<tr>
				<td align="right" class="bg">&nbsp;</td>
				<td width="35%">
					<@permission permissionName="queryLoanBefore">
		                <input type="submit" value="查询" class="btn_auto_30 btn_blue" />
	            	</@permission>
	            	<@permission permissionName="downloadLoanBefore">
		            	<#if dataStart==null || dataEnd==null >
		            		<span><a onclick="return false" href="#" target="_blank" class="btn_auto_30 btn_gray" >导出</a><span class=" fs14" style="color: red;" >【请先查询后再导出报表】</span><font class="red ml10"> ${errorMessage}</font></span>
		            	<#else>
							<span><a href="/loanBefore/download?createDateStart=${vo.createDateStart}&createDateEnd=${vo.createDateEnd}&bankName=${vo.bankName}&provinceName=${vo.provinceName}&nsStartDateStart=${vo.nsStartDateStart}&nsStartDateEnd=${vo.nsStartDateEnd}" target="_blank" class="btn_auto_30 btn_blue" >导出</a><span class=" fs14" style="color: red;" >【请先查询后再导出报表】</span><font class="red ml10"> ${errorMessage}</font></span>
						</#if>
					</@permission>
				</td>
            </tr>
		</tbody>
		</table>
 	</form> 
</div>
<#if dataStart==null || dataEnd==null >
	<div id="o2o_result"  class="action-ajax-load mt20" data-url="${o2ourl}" style="display:none;"></div>
<#else>
	<div id="o2o_result"  class="action-ajax-load mt20" data-url="${o2ourl}"></div>
</#if>
</@master>	